2020-2021 Sunseeker Telemetry and Lighting System
timer_b_ex1_continuousModeCCR0.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Macros

#define COMPARE_VALUE   50000
 

Functions

void main (void)
 
void TIMERB0_ISR (void)
 

Macro Definition Documentation

◆ COMPARE_VALUE

#define COMPARE_VALUE   50000

Timer_B, Toggle P1.0, CCR0 Cont. Mode ISR, DCO SMCLK

Description: Toggle P1.0 using software and TB_0 ISR. Toggles every 50000 SMCLK cycles. SMCLK provides clock source for TBCLK. During the TB_0 ISR, P1.0 is toggled and 50000 clock cycles are added to CCR0. TB_0 ISR is triggered every 50000 cycles. CPU is normally off and used only during TB_ISR. ACLK = n/a, MCLK = SMCLK = TBCLK = default DCO ~1.045MHz

Tested On: MSP430F5529

/ |
RST

| | | P1.0|-->LED

Definition at line 54 of file timer_b_ex1_continuousModeCCR0.c.

Function Documentation

◆ main()

void main ( void  )

Definition at line 56 of file timer_b_ex1_continuousModeCCR0.c.

References __no_operation(), and COMPARE_VALUE.

◆ TIMERB0_ISR()

void TIMERB0_ISR ( void  )

Definition at line 102 of file timer_b_ex1_continuousModeCCR0.c.

References COMPARE_VALUE.